<!--  -->
<template>
  <el-button class="sub-btn" @click="handleClick">
    <div>{{ title }}</div>
  </el-button>
</template>

<script>
export default {
  components: {},
  props: {
    title: { type: String, default: '创建' },
  },
  data() {
    return {}
  },

  computed: {},

  methods: {
    handleClick() {
      this.$emit('subClick')
    },
  },
}
</script>
<style lang="scss" scoped>
.sub-btn {
  height: vh(34px);
  padding: 0 vw(14px);
  font-size: vw(14px);
  line-height: vh(32px);
  color: #fff;
  background: #242424;
  border-radius: 4px;
}
</style>
